<template>
  <div id="app">
    <van-skeleton title :row="3" v-if="gjp" />
    <router-view v-slot="{ Component }" v-else>
      <keep-alive>
        <component :is="Component" />
      </keep-alive>
    </router-view>


  </div>
</template>

<script setup>
import { ref, watch } from 'vue';
let gjp = ref(true)
import { useRoute } from 'vue-router';
const route = useRoute()
watch(() => route.path, (newValue, oldValue) => {
  gjp.value = true
  setTimeout(() => {
    gjp.value = false
  }, 100)
})

</script>

<style lang="scss" scoped></style>